package nfwx.analytics;

/**
 * 采集信息：音频信息
 */

public class GrabAudioInfo extends GrabObject {
    public final GrabBoolean exists; //是否存在
    public final GrabNumber volume; //音量0-100
    public final GrabNumber state; //0正常, 1 耳机, 2 蓝牙, 3 音箱,
    public final GrabNumber bits; //支持最大的采用比特数,
    public final GrabString name; //设备名
    public final GrabNumber samplerate; //最大采样率,
    public final GrabNumber channels; //最大的声道数

    GrabAudioInfo()
    {
        super(false);
        exists = (GrabBoolean)defineProperty("exists", new GrabBoolean(false));
        volume = (GrabNumber)defineProperty("volume", new GrabNumber(false));
        state = (GrabNumber)defineProperty("state", new GrabNumber(false));
        bits = (GrabNumber)defineProperty("bits", new GrabNumber(false));
        samplerate = (GrabNumber)defineProperty("samplerate", new GrabNumber(false));
        channels = (GrabNumber)defineProperty("channels", new GrabNumber(false));
        name = (GrabString)defineProperty("name", new GrabString(false));
    }
}
